<script lang="ts" setup>
import { useCakeRoom } from '../hook/cakeRoom'

let cakeRoom = useCakeRoom()
</script>
<template>
    <div>
        <div>我是子组件</div>
        <div>当前剩余蛋糕：{{ cakeRoom.stock }}</div>
    </div>
</template>